<template>
  <div class="aboutus-root">
    <div class="logo">
      <div class="about-logo">
        Forest Secret
      </div>
      <span style="font-size: 10px;color: indianred">BJS Team 开发小小小小小组</span>
    </div>

    <el-card class="project">
      <p>截图上传, 文件分类, 管理, 云端文件管理的私人网盘工具</p>
      <p>博客编写, 上传, 保存, 发布集一体</p>
      <span>码云地址∶
        <span class="aboutus-url" @click="toGit">https://gitee.com/BJSTeam/fs-main</span>
      </span>
      <br>
      <span>官网地址∶
        <span class="aboutus-url" @click="toBjsTeam">https://www.bsjteam.com</span>
      </span>
      <br>
      <br>
      <div style="width: 100%;text-align: center">
        <span style="font-size: 10px;">Forest Secret 遵循 [Apache-2.0] 开源协议 </span>
      </div>
    </el-card>

    <el-card class="author-card">
      <div class="author">
        <div class="root">
          <div>
            <el-avatar
                shape="square"
                :size="100"
                fit="cover"
                src="https://xiaozei-bucket.oss-cn-hangzhou.aliyuncs.com/bjsteam/jasminexz.jpg">
            </el-avatar>
          </div>
          <el-divider class="author-divider" direction="vertical"></el-divider>
          <div class="personal">
            <span>Name</span>
            <span>Position</span>
            <span>QQ</span>
            <span>E-mail</span>
            <span>address</span>
          </div>
          <div class="personal">
            <span>:</span>
            <span>:</span>
            <span>:</span>
            <span>:</span>
            <span>:</span>
          </div>
          <div class="personal">
            <span>霜雪雷霆雹霹雳</span>
            <span>前 / 后端</span>
            <span>491548320</span>
            <span>491548320@qq.com</span>
            <span><a href="https://gitee.com/jasminexz" target="_Blank"  style="color: inherit;">https://gitee.com/jasminexz</a></span>
          </div>
        </div>
      </div>
    </el-card>
  </div>
</template>

<script>
import { shell } from 'electron'
export default {
  name: "aboutUs",
  methods: {
    toGit(){
      shell.openExternal('https://gitee.com/BJSTeam/fs-main')
    },
    toBjsTeam () {
      shell.openExternal('https://www.bsjteam.com')
    }
  }
}
</script>

<style scoped lang="scss">
  .aboutus-root {
    height: 500px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .aboutus-root .logo {
    width: 100%;
    margin-top: 100px;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-shrink:0;
  }

  .about-logo {
    font-size: 60px;
    font-weight: 800;
    font-family: fantasy;
    letter-spacing:3px;
    background: linear-gradient(
        90deg,
        #00dbde,
        #fc00ff,
        #00dbde
    );
    -webkit-background-clip: text;
    color: transparent;
    height: 100%;
    animation: glow 4s linear infinite;
    transition: 0.5s;
    background-size: 300%;
  }
  @keyframes glow {
    to {
      background-position: -300%;
    }
  }

  .project {
    flex-shrink:0;
    margin-top: 50px;
    margin-bottom: 150px;
    color: #989d9f;

    [data-theme="night"] & {
      background-color: #5a5a5a;
      color: #909399;
      //color: $theme-color-night-dark;
      border: 1px solid #5a5a5a;
    }

    a {
      @include color();
    }
  }
  .project span {
    font-size: 12px;
  }

  .author-card {
    margin-bottom: 50px;
    flex-shrink:0;

    [data-theme="night"] & {
      background-color: #5a5a5a;
      color: #909399;
      border: 1px solid #5a5a5a;
    }
  }
  .author {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    border-radius: 10px;
  }
  .author .root {
    display: flex;
    flex-direction: row;
    justify-content: center;

    .author-divider {
      [data-theme="night"] & {
        background-color: $theme-color-night-dark;
      }
    }
  }
  .author .root .personal {
    margin-left: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    font-size: 11px;
    font-weight: 600;
    color: #989d9f;
  }
  .author /deep/ .el-divider--vertical {
    height: 100px;
    margin-left: 30px;
  }

  .aboutus-url {
    cursor: pointer;
    @include color();
  }

</style>